package com.lichuang.fruitvarietysm.goods.mapper;

import com.lichuang.fruitvarietysm.goods.entity.GoodsSkuAttr;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * 商品详情页的属性值表 Mapper 接口
 * </p>
 *
 * @author shuaihang
 * @since 2019-06-14
 */
@Repository
public interface GoodsSkuAttrMapper extends BaseMapper<GoodsSkuAttr> {

    /**
     * 根据商品id，查询对应的商品属性和值
     * @param goods_id
     * @return
     */
    List<GoodsSkuAttr> sSkuAttribute(@Param("goods_id") Integer goods_id,@Param("sku_attr_pid") Integer sku_attr_pid);



}
